<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head profile="http://selenium-ide.openqa.org/profiles/test-case">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<link rel="selenium.base" href="https://mail.yandex.ru/" />
<title>yandex</title>
</head>
<body>
<table cellpadding="1" cellspacing="1" border="1">
<thead>
<tr><td rowspan="1" colspan="3">yandex</td></tr>
</thead><tbody>
<tr>
	<td>open</td>
	<td>https://mail.yandex.ru</td>
	<td></td>
</tr>
<tr>
	<td>storeEval</td>
	<td>if (selenium.isElementPresent(&quot;//*[@id='js']/body/div[1]/div/div[3]/div/div[3]/a/span[2]&quot;)==true){nextMove=&quot;login&quot;} else {nextMove=&quot;exit&quot;}</td>
	<td>nextMove</td>
</tr>
<tr>
	<td>gotolabel</td>
	<td>${nextMove}</td>
	<td></td>
</tr>
<tr>
	<td>label</td>
	<td>exit</td>
	<td></td>
</tr>
<tr>
	<td>clickAndWait</td>
	<td>link=Выход</td>
	<td></td>
</tr>
<tr>
	<td>label</td>
	<td>login</td>
	<td></td>
</tr>
<tr>
	<td>open</td>
	<td>https://mail.yandex.ru</td>
	<td></td>
</tr>
<tr>
	<td>type</td>
	<td>id=b-mail-domik-username11</td>
	<td>schoolout3</td>
</tr>
<tr>
	<td>click</td>
	<td>xpath=(//label[@onclick=&quot;return {name: 'b-hint-input'}&quot;])[2]</td>
	<td></td>
</tr>
<tr>
	<td>click</td>
	<td>id=b-mail-domik-password11</td>
	<td></td>
</tr>
<tr>
	<td>type</td>
	<td>id=b-mail-domik-password11</td>
	<td>1q2w3e4r5t</td>
</tr>
<tr>
	<td>clickAndWait</td>
	<td>css=input.b-mail-button__button</td>
	<td></td>
</tr>
</tbody></table>
</body>
</html>
